package yxy.cherry.battle.module.record.stream;

public abstract class RecordStream {

	private boolean recorded = false;
	private StringBuffer sb = new StringBuffer();

	protected StringBuffer sb() {
		return sb;
	}

	public String info() {
		return sb.toString();
	}

	public void record() {
		if (recorded) {
			return;
		}
		_record();
		this.recorded = true;
	}

	abstract protected void _record();

}
